package com.qingcloud.fexecutor;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import java.net.UnknownHostException;

/**
 * 数据融合平台后台管理
 *
 * @author wangjinnan
 */

@Slf4j
@EnableWebMvc
@EnableTransactionManagement
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, CassandraAutoConfiguration.class},
        scanBasePackages = {"com.qingcloud.fexecutor", "com.qingcloud.base"})
@tk.mybatis.spring.annotation.MapperScan(basePackages = {"com.qingcloud.fexecutor.mapper"})
@EnableFeignClients
public class DataFusionWebApplication {

    public static void main(String[] args) throws UnknownHostException {
        ConfigurableApplicationContext application = SpringApplication.run(DataFusionWebApplication.class, args);
    }
}
